package com.zhang.infrastructure.util.excel;

import com.alibaba.excel.metadata.Head;
import com.alibaba.excel.write.style.column.AbstractHeadColumnWidthStyleStrategy;

public class MyColumnWidthStyleStrategy extends AbstractHeadColumnWidthStyleStrategy {
    @Override
    protected Integer columnWidth(Head head, Integer integer) {
        if ("图片".equals(head.getHeadNameList().get(0))) {
            return 16;
        }
        return 9;
    }
}
